package com.ruoyi.loupan.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.loupan.mapper.TbRelationPremisesPropertyMapper;
import com.ruoyi.loupan.domain.TbRelationPremisesProperty;
import com.ruoyi.loupan.service.ITbRelationPremisesPropertyService;

/**
 * 楼盘-特色Service业务层处理
 * 
 * @author wukaige
 * @date 2021-07-01
 */
@Service
public class TbRelationPremisesPropertyServiceImpl implements ITbRelationPremisesPropertyService 
{
    @Autowired
    private TbRelationPremisesPropertyMapper tbRelationPremisesPropertyMapper;

    /**
     * 查询楼盘-特色
     * 
     * @param id 楼盘-特色ID
     * @return 楼盘-特色
     */
    @Override
    public TbRelationPremisesProperty selectTbRelationPremisesPropertyById(Long id)
    {
        return tbRelationPremisesPropertyMapper.selectTbRelationPremisesPropertyById(id);
    }

    /**
     * 查询楼盘-特色列表
     * 
     * @param tbRelationPremisesProperty 楼盘-特色
     * @return 楼盘-特色
     */
    @Override
    public List<TbRelationPremisesProperty> selectTbRelationPremisesPropertyList(TbRelationPremisesProperty tbRelationPremisesProperty)
    {
        return tbRelationPremisesPropertyMapper.selectTbRelationPremisesPropertyList(tbRelationPremisesProperty);
    }

    /**
     * 新增楼盘-特色
     * 
     * @param tbRelationPremisesProperty 楼盘-特色
     * @return 结果
     */
    @Override
    public int insertTbRelationPremisesProperty(TbRelationPremisesProperty tbRelationPremisesProperty)
    {
        return tbRelationPremisesPropertyMapper.insertTbRelationPremisesProperty(tbRelationPremisesProperty);
    }

    /**
     * 修改楼盘-特色
     * 
     * @param tbRelationPremisesProperty 楼盘-特色
     * @return 结果
     */
    @Override
    public int updateTbRelationPremisesProperty(TbRelationPremisesProperty tbRelationPremisesProperty)
    {
        return tbRelationPremisesPropertyMapper.updateTbRelationPremisesProperty(tbRelationPremisesProperty);
    }

    /**
     * 批量删除楼盘-特色
     * 
     * @param ids 需要删除的楼盘-特色ID
     * @return 结果
     */
    @Override
    public int deleteTbRelationPremisesPropertyByIds(Long[] ids)
    {
        return tbRelationPremisesPropertyMapper.deleteTbRelationPremisesPropertyByIds(ids);
    }

    /**
     * 删除楼盘-特色信息
     * 
     * @param id 楼盘-特色ID
     * @return 结果
     */
    @Override
    public int deleteTbRelationPremisesPropertyById(Long id)
    {
        return tbRelationPremisesPropertyMapper.deleteTbRelationPremisesPropertyById(id);
    }
}
